\documentclass{beamer}
\usetheme{Madrid}  
 \usepackage{ragged2e}
\usepackage{fontspec,xltxtra,xunicode}
\usepackage{fontspec}  
\usepackage{color}
\usepackage{ctex}
%\usepackage{mathrsfs}

\usepackage{setspace}
\usepackage{indentfirst}
\XeTeXlinebreaklocale “zh”
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt

\usepackage{amsmath,amsthm,amsfonts,amssymb,bm}
\usepackage[math-style=ISO,partial=upright,warnings-off={mathtools-overbracket}]{unicode-math} 

\begin{document}  

\title{Your title} 
\author{Your name}

\frame{\titlepage}  

\input{slides}

\end{document}
